﻿@{
    ViewData["Title"] = "业务参数字典表(树)创建界面";
    Layout = null;
    ViewFWUser currentUserInfo = base.Context.Session.GetUserInfo();
}

 <input type="hidden" id="uuid" name="id">


<div data-toggle="topjui-layout" data-options="fit:true">
    <div data-options="region:'center',title:'',fit:true,border:false,bodyCls:'border_right_bottom'">
        <div data-toggle="topjui-tabs" data-options="fit:true,border:false">
            <div title="@L("基本信息")" data-options="iconCls:'fa fa-th'">
                <div class="topjui-fluid">
                    <fieldset>
                        <legend>@L("基本信息")</legend>
                    </fieldset>

                 <div class="topjui-row" id="divMyFormParentGUID">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("父级")</label>
                            <div class="topjui-input-block">
                                <input type="text" name="parentGUID" id="myFormParentGUID" data-toggle="topjui-combotreegrid"
                                       data-options="required:false,
                                   columns:[[
                                       {field:'text',title:'@L("名称")',width:100}
                                   ]],
                                    url:'/api/services/app/TreeGrid/GetTreeGird?viewName=View_CF_BizOption&nodeName=BizOptionName',
                                   expandUrl:'/api/services/app/TreeGrid/GetTreeGird?pid={id}&viewName=View_CF_BizOption&nodeName=BizOptionName',
                                   getFatherIdsUrl:'/api/services/app/TreeGrid/GetFatherIds?id={id}&viewName=View_CF_BizOption&nodeName=BizOptionName'
                                   ">
                            </div>
                        </div>
                   </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("平台业务参数配置") </label>
                            <div class="topjui-input-block">
                                <input type="text" name="bizParamSetGUID" id="myFormBizParamSetGUID"
                                       data-toggle="topjui-combotree"
                                       data-options="required:false,
                       prompt:'平台业务参数配置(树)',
                       onlyLeafCheck:true,
                       textField:'text',
                        url:'/api/services/app/TreeGrid/GetTreeGird?viewName=View_CF_BizParamSet&nodeName=BizParamSetName',
                        expandUrl:'/api/services/app/TreeGrid/GetTreeGird?pid={id}&viewName=View_CF_BizParamSet&nodeName=BizParamSetName',
                        getFatherIdsUrl:'/api/services/app/TreeGrid/GetFatherIds?id={id}&viewName=View_CF_BizParamSet&nodeName=BizParamSetName',
                        queryParams:'schoolName:text',
                        onBeforeSelect: function (node) {
                         var opts = $(this).iTree('options');
                         if (opts.onlyLeafCheck) {
                            // 判断是否是叶子节点
                             var isLeaf = $(this).iTree('isLeaf', node.target);
                            if (!isLeaf) {
                                // 返回false表示取消本次选择操作
                                return false;
                            }
                         }
                       },
                       icons:[{
                            iconCls:'fa fa-remove',
                            handler: function(e){
                                $(e.data.target).iCombotree('clear');
                            }
                        }],
                        iconWidth:22">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("字典项名称")</label>
                            <div class="topjui-input-block">
                                <input id="myFormBizOptionName" type="text" name="bizOptionName" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("字典的Code")</label>
                            <div class="topjui-input-block">
                                <input id="myFormBizOptionCode" type="text" name="bizOptionCode" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("树形的排序编码")</label>
                            <div class="topjui-input-block">
                                <input id="myFormOrderCode" type="text" name="orderCode" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

                    <div class="topjui-row">
                        <div class="topjui-col-sm12">
                            <label class="topjui-form-label">@L("对应的图标")</label>
                            <div class="topjui-input-block">
                                <input id="myFormIcon" type="text" name="icon" data-toggle="topjui-textbox" data-options="required:false">
                            </div>
                        </div>
                    </div>

             
                </div>
            </div>
            @*<div title="@L("选填信息")" data-options="iconCls:'fa fa-th'">
                    <div class="topjui-fluid">
                        <fieldset>
                            <legend>@L("扩展消息")</legend>
                        </fieldset>
                    </div>
                </div>*@
        </div>
    </div>
</div>

